package com.mh.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mh.system.domain.SysMenu;
import com.mh.system.domain.SysRole;

import java.util.List;
import java.util.Set;

public interface SysMenuMapper extends BaseMapper<SysMenu> {

    //根据用户ID查询菜单权限, 返回 system/role/index
    Set<String> selectPermsByUserId(Long userId);

    //查询菜单的全部信息
    List<SysMenu> selectMenuTreeAll();

    //根据userId, 查询菜单的全部信息
    List<SysMenu> selectMenuTreeByUserId(Long userId);
}
